import request from '@/utils/request'

// 查询漫画信息列表
export function listCaricature(query) {
  return request({
    url: '/pixiv/caricature/list',
    method: 'get',
    params: query
  })
}

// 查询漫画信息详细
export function getCaricature(id) {
  return request({
    url: '/pixiv/caricature/' + id,
    method: 'get'
  })
}

// 新增漫画信息
export function addCaricature(data) {
  return request({
    url: '/pixiv/caricature',
    method: 'post',
    data: data
  })
}

// 修改漫画信息
export function updateCaricature(data) {
  return request({
    url: '/pixiv/caricature',
    method: 'put',
    data: data
  })
}

// 删除漫画信息
export function delCaricature(id) {
  return request({
    url: '/pixiv/caricature/' + id,
    method: 'delete'
  })
}

export function listAllCaricature() {
  return request({
    url: '/pixiv/caricature/listAllCaricature',
    method: 'get'
  })
}

export function getCaricatureInfo(id) {
  return request({
    url: '/pixiv/caricature/getCaricatureInfo/' + id,
    method: 'get'
  })
}